import React from "react";
import styles from "./index.module.css";
import {withRouter, RouteComponentProps} from 'react-router-dom';


interface Props extends RouteComponentProps {

}

class Index extends React.Component<Props> {


    viewLogistics = () => {
        const {history}=this.props;
        history.push('/orders/express/4');
    };


    confirm = () => {

    };

    render() {

        return (
            <>
                <button className={styles.btn} style={{
                    backgroundColor: '#EBEBF3',
                    color: 'black'
                }} onClick={this.viewLogistics}>查看物流
                </button>
                <button className={styles.btn} style={{
                    backgroundColor: 'black',
                    color: 'white'
                }} onClick={this.confirm}>确认收货
                </button>
            </>
        );
    }
}

export default withRouter(Index)
